<p>news works!</p>


<button (click)="getData()">get请求数据</button>
<br>
<button (click)="doLogin()">post请求数据</button>
<br>
<button (click)="getJsonpData()">通过Jsonp请求数据(跨域的一种解决方案)</button>
<hr>
<button (click)="getAxiosData()">通过第三方模块axios获取数据</button>
<br>
<ul>
    <li *ngFor="let item of List">
        {{item._id}}--{{item.title}}
    </li>
</ul>